-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability import automated tests to zephyr #2319
base: master
Are you sure you want to change the base?
Add ability import automated tests to zephyr #2319
Conversation
This pull request introduces 1 alert when merging 1e9199b into eb591ca - view on LGTM.com new alerts:
|
Codecov Report
@@ Coverage Diff @@
## master #2319 +/- ##
=========================================
Coverage 96.67% 96.67%
Complexity 5534 5534
=========================================
Files 780 780
Lines 15835 15835
Branches 1050 1050
=========================================
Hits 15309 15309
Misses 410 410
Partials 116 116 📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
1e9199b
to
ffc0ff8
Compare
This pull request introduces 1 alert when merging ffc0ff8 into 9100e86 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging fb1037d into a0e448d - view on LGTM.com new alerts:
|
32573d8
to
004c982
Compare
This pull request introduces 1 alert when merging 004c982 into 09af67b - view on LGTM.com new alerts:
|
b863c68
to
d6ccbe9
Compare
This pull request introduces 1 alert when merging d6ccbe9 into 09af67b - view on LGTM.com new alerts:
|
d6ccbe9
to
b0c55ac
Compare
This pull request introduces 1 alert when merging b0c55ac into b49e863 - view on LGTM.com new alerts:
|
b0c55ac
to
bb74db0
Compare
This pull request introduces 1 alert when merging bb74db0 into b49e863 - view on LGTM.com new alerts:
|
bb74db0
to
1eb61f8
Compare
This pull request introduces 1 alert when merging 1eb61f8 into 14ca1f8 - view on LGTM.com new alerts:
|
1eb61f8
to
8625ed6
Compare
This pull request introduces 1 alert when merging 8625ed6 into 14ca1f8 - view on LGTM.com new alerts:
|
8625ed6
to
4ea0c60
Compare
4ea0c60
to
4e07c8a
Compare
This pull request introduces 1 alert when merging 4e07c8a into e5e0fce - view on LGTM.com new alerts:
|
940b33d
to
3ea79af
Compare
This pull request introduces 1 alert when merging 3ea79af into a8b86c6 - view on LGTM.com new alerts:
|
3ea79af
to
b3010e8
Compare
This pull request introduces 1 alert when merging b3010e8 into 10a59b5 - view on LGTM.com new alerts:
|
b3010e8
to
bf235d2
Compare
This pull request introduces 1 alert when merging bf235d2 into 6f47289 - view on LGTM.com new alerts:
|
bf235d2
to
22f841d
Compare
This pull request introduces 1 alert when merging 22f841d into 7eac298 - view on LGTM.com new alerts:
|
22f841d
to
d1d7b2a
Compare
This pull request introduces 1 alert when merging d1d7b2a into b8a0370 - view on LGTM.com new alerts:
|
1a62f99
to
dce9162
Compare
This pull request introduces 1 alert when merging dce9162 into b8a0370 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 06d907b into 70bce46 - view on LGTM.com new alerts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The review is not completed, because high number of critical comments are found, please fix them at first
|`zephyr.exporter.export-results` | ||
|true | ||
|Property to export tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the purpose is not clear
|true | ||
|Property to export tests | ||
|
||
|`zephyr.exporter.level` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|`zephyr.exporter.level` | |
|`zephyr-exporter.test-entity` |
|
||
|`zephyr.exporter.level` | ||
|false | ||
|Property to export stories on STORY or SCENARIO level |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the description is not clear
|`zephyr.exporter.jira-instance-key` | ||
|false | ||
|The key of the configured JIRA instance, in case of missing value it will be evaluated automatically based on issue keys being exported | ||
|
||
|`zephyr.exporter.source-directory` | ||
|true | ||
|Path to directory with test execution JSON results. | ||
|Path to directory with test JSON results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any particular reason of this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This source includes not only execution results but also test details as description and scenario
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please elaborate on this
|
||
|`zephyr.exporter.update-execution-statuses-only` | ||
|false | ||
|Property for update existing executions statuses only. | ||
|
||
|`zephyr.exporter.update-cases-on-export` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|`zephyr.exporter.update-cases-on-export` | |
|`zephyr-exporter.update-test-cases` |
{ | ||
Map<String, String> mapping = jiraConfigurationProvider.getFieldsMappingByProjectKey(projectKey); | ||
String storyType = mapping.get(STORY_TYPE_FIELD_KEY); | ||
if (Objects.nonNull(storyType)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
simple != null
?
for (Story story : OutputReader.readStoriesFromJsons(zephyrExporterProperties.getSourceDirectory())) | ||
{ | ||
TestCaseLevel testCaseLevel = zephyrExporterProperties.getLevel(); | ||
if (testCaseLevel.equals(TestCaseLevel.SCENARIO)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use ==
to compare enum-s
{ | ||
exportTestExecution(testCase, configuration); | ||
for (Story story : OutputReader.readStoriesFromJsons(zephyrExporterProperties.getSourceDirectory())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refactor to avoid copy-pasted logic
this.level = level; | ||
} | ||
|
||
public String getLevel() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is it needed?
UNKNOWN, | ||
SKIPPED, | ||
PASSED; | ||
BROKEN(0, "notPerformed"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is BROKEN
mapped to notPerformed
?
This pull request introduces 1 alert when merging 3fcfc47 into b0b5aad - view on LGTM.com new alerts:
|
3fcfc47
to
92d82b5
Compare
This pull request introduces 1 alert when merging 92d82b5 into 0e2da2a - view on LGTM.com new alerts:
|
Add ability to import automated tests to Zephyr:
add level properties for story and scenario
add ability to create jira issue
add ability to link requirement to test